#include "Logger.h"

using namespace jet;

Logger *Logger::_globalLogger = nullptr;

Logger::Logger()
{
}

void Logger::SetGlobalLogger(Logger * logger)
{
    _globalLogger = logger;
}

void Logger::LogFixed(const QString &message)
{
    if (_globalLogger == nullptr) return;
    _globalLogger->Log(LOG_LEVEL_FIXED, message.toStdString());
}

void Logger::LogInfo(const QString & information)
{
    if(_globalLogger != NULL)
        _globalLogger->Log(LOG_LEVEL_INFO, information.toStdString());
}

void Logger::Log(log_levels level, const std::string & information)
{
    Q_UNUSED(level)
    Q_UNUSED(information)
}
